#include <stdio.h>
#include <string.h>

typedef struct 
{
    char name[20];
    int age;
}Person;

void update_person(Person *p)
{
    strcpy(p->name, "Jack");
    p->age = 18;
}

int main()
{
    Person per1;

    update_person(&per1);

    printf("name:%s,age:%d", per1.name, per1.age);

    return 0;
}
